package com.ecut.property_project.service.base;

import com.ecut.property_project.mapper.base.BaseCompanyMapper;
import com.ecut.property_project.model.base.BaseCompany;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BaseCompanyService{

    @Resource
    private BaseCompanyMapper baseCompanyMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return baseCompanyMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(BaseCompany record) {
        return baseCompanyMapper.insert(record);
    }

    
    public int insertSelective(BaseCompany record) {
        return baseCompanyMapper.insertSelective(record);
    }

    public List<BaseCompany> selectAll(){
     return baseCompanyMapper.selectAll();
    }

    public List<BaseCompany> selectByPage(Integer page, Integer pageSize){return baseCompanyMapper.selectByPage(page,pageSize);}

    public BaseCompany selectByPrimaryKey(Integer id) {
        return baseCompanyMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(BaseCompany record) {
        return baseCompanyMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(BaseCompany record) {
        return baseCompanyMapper.updateByPrimaryKey(record);
    }

    public String selectByName(String company){return baseCompanyMapper.selectByName(company);}
}
